﻿<%@ Page Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Param_1.aspx.cs" Inherits="DBtuning.Param_1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Medium" 
        Text="Parameter Monitor " Font-Names="Aharoni"></asp:Label>
    <p align="right">
        <asp:Label ID="Label4" runat="server" BackColor="Lime" Text="Healthy" 
            Font-Names="Aharoni" Font-Size="Medium"></asp:Label>
&nbsp;
        <asp:Label ID="Label3" runat="server" BackColor="#FF9900" Text="Unhealthy" 
            Font-Names="Aharoni" Font-Size="Medium"></asp:Label>
&nbsp;
        <asp:Label ID="Label2" runat="server" BackColor="Red" Text="Alert" 
            Font-Names="Aharoni" Font-Size="Medium"></asp:Label>
    </p>
    <p align="center">
        <asp:GridView ID="GridView_Param" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" Font-Names="Arial" Font-Size="Small" ForeColor="#333333" 
            GridLines="None" Width="710px" 
            onrowdatabound="GridView_Param_RowDataBound">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <Columns>
                <asp:TemplateField HeaderText="Parameter" ShowHeader="False">
                     <ItemTemplate>
                <asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Eval("ParameterDesc") %>' NavigateUrl='<%# Eval("ParameterID","Param_2.aspx?id={0}") %>'></asp:HyperLink>
           </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Value" Visible="False"></asp:TemplateField>
                <asp:BoundField DataField="ParameterValue" HeaderText="Value" 
                    DataFormatString="{0:F2}" />
                <asp:BoundField DataField="ParameterWarningValue" HeaderText="Warning" 
                    DataFormatString="{0:F2}" />
                <asp:BoundField DataField="ParameterThresholdValue" HeaderText="Threshold" 
                    DataFormatString="{0:F2}" />
                <asp:BoundField DataField="ParameterUnit" HeaderText="Unit" />
                <asp:BoundField DataField="ParameterStatus" HeaderText="Status" />
                <asp:BoundField DataField="ParameterPollTimeStamp" HeaderText="Time" />
            </Columns>
            <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </p>
    <asp:XmlDataSource ID="XmlDataSourceConfig" runat="server" DataFile="~/App_Data/PerfConfig.xml" />
    <p></p>
    
    <asp:Label ID="Label5" runat="server" Text="Tuning Advice:" Font-Names="Aharoni"
        Font-Size="Medium" Font-Bold="True"></asp:Label><p></p>
    <asp:Label ID="Label6" runat="server" Font-Names="Aharoni" Font-Size="Medium" 
        ForeColor="Red"></asp:Label><br />
</asp:Content>
